﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace SGT.Model
{
    public class Proveedor : INotifyPropertyChanged
    {
        private int _ProveedorID;
        private string _Nombre;
        private string _Direccion;
        private string _Telefono;
        private string _Contacto;

        public Proveedor()
        {
        }

        public int ProveedorID
        {
            get { return _ProveedorID; }
            set
            {
                _ProveedorID = value;
                RaisePropertyChanged("ProveedorID");
            }
        }

        public string Nombre
        {
            get { return _Nombre; }
            set
            {
                _Nombre = value;
                RaisePropertyChanged("Nombre");
            }
        }

        public string Direccion
        {
            get { return _Direccion; }
            set
            {
                _Direccion = value;
                RaisePropertyChanged("Direccion");
            }
        }

        public string Telefono
        {
            get { return _Telefono; }
            set
            {
                _Telefono = value;
                RaisePropertyChanged("Telefono");
            }
        }
        public string Contacto
        {
            get { return _Contacto; }
            set
            {
                _Contacto = value;
                RaisePropertyChanged("Contacto");
            }
        }




        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        private void RaisePropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(
                    this,
                    new PropertyChangedEventArgs(propertyName)
                    );
            }
        }

        #endregion



    }
}
